//
//  HouseRentalRequestManager.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 16/9/13.
//  Copyright © 2016年 陈区. All rights reserved.
//

#import "HouseModel.h"
#import <Foundation/Foundation.h>

@interface HouseRentalRequestManager : NSObject

@property (nonatomic, copy) NSString* requestTime;

/**
 *  根据经纬度请求小区列表 可替换[[BusinessManager sharedManager].houseRentalEntityManager requestHouseRentalListWithLocation:
 *
 *  @param finished
 */
- (void)requestHouseRentalListWithLocation:(float)latitude withLongitude:(float)longitude withCommunityId:(NSString*)communityId withMinRent:(long)minRent withMaxRent:(long)maxRent withHall:(long)hall withRegionsId:(int)regionId Finished:(SEGNetworkRequestCallBack)finished;

/**
 *  根据经纬度请求更多小区列表 可替换[[BusinessManager sharedManager].houseRentalEntityManager requestMorHouseRentalListWithLocation:
 *
 *  @param finished
 */
- (void)requestMorHouseRentalListWithLocation:(float)latitude withLongitude:(float)longitude withIndex:(NSNumber*)index Finished:(SEGNetworkRequestCallBack)finished;

/**
 *  请求小区详情 可替换[[BusinessManager sharedManager].houseRentalEntityManager requestHouseRentalDetail:
 *
 *  @param finished
 */
- (void)requestHouseRentalDetailWithServiceId:(NSNumber*)serviceId Finished:(SEGNetworkRequestCallBack)finished;

/**
 *  请求预约求租 可替换[[BusinessManager sharedManager].houseRentalEntityManager uploadAppoinDataToService:
 *
 *  @param finished
 */
- (void)requestHouseRentaApponitWithServiceId:(NSNumber*)serviceId withContact:(NSString*)contactStr withTel:(NSString*)telStr orDescription:(NSString*)description Finished:(SEGNetworkRequestCallBack)finished;

/**
 *  请求城市信息 可替换[[ServiceInterface sharedServiceInterface] findCityInfo];
 *
 *  @param finished
 */
- (void)requestCityInfo:(SEGNetworkRequestCallBack)finished;

/**
 *  请求我的求租 可替换[[BusinessManager sharedManager].houseRentalEntityManager requestHouseRentalMyAppoint:
 *
 *  @param finished
 */
- (void)requestHouseRentalMyAppointWithUserId:(NSString*)userId Finished:(SEGNetworkRequestCallBack)finished;

/**
 *  请求发布租房信息 可替换[[BusinessManager sharedManager].houseRentalEntityManager addHouseRentalEntityData:
 *
 *  @param finished
 */
- (void)requestAddHouseRentalWithModel:(HouseModel*)model withPhotos:(NSArray*)photosArray Finished:(SEGNetworkReponse)finished;

/**
 *  请求我的放盘 可替换[[BusinessManager sharedManager].houseRentalEntityManager requestHouseRentalMySale:
 *
 *  @param finished
 */
- (void)requestHouseRentalMySaleWithUserId:(NSString*)userId Finished:(SEGNetworkRequestCallBack)finished;

/**
 *  请求删除我的放盘 可替换[[BusinessManager sharedManager].houseRentalEntityManager delHouseRentalEntityData:
 *
 *  @param finished
 */
- (void)requestdeleteHouseRentalDataWithServiceId:(NSString*)serviceId Finished:(SEGNetworkRequestCallBack)finished;

/**
 *  请求更新租房信息 可替换[[BusinessManager sharedManager].houseRentalEntityManager updateHouseRentalEntityData:
 *
 *  @param finished
 */
- (void)requestUpdateHouseRentalWithModel:(HouseModel*)model withPhotos:(NSArray*)photosArray isEditPhoto:(BOOL)isEditPhoto Finished:(SEGNetworkReponse)finished;

+ (void)requesFindDictionaryInfoWithCode:(NSString *)code finished:(SEGNetworkRequestCallBack)finished;
@end
